<template>
 <div class="app">
    app
 </div>
   <!-- 全局配置 -->
   <el-config-provider :locale="zhCn">
    <div class="app">
      <router-view />
      <el-button type="primary" @click="login">Primary</el-button>

      <el-pagination :page-sizes="[100, 200, 300, 400]" layout="total, sizes, prev, pager, next, jumper" :total="400" />

      <el-date-picker
        type="date"
        placeholder="Pick a day"
      />
    </div>
  </el-config-provider>
</template>

<script lang='ts' setup>
// element-plus 中的简体中文语言包
import zhCn from 'element-plus/es/locale/lang/zh-cn'


import request from '@/utils/request'

// 登录
const login = async() => {
  const result = await request<any, ILoginSuccess>({
    url:'/api/v1/admin/sessions',
    method: 'POST',
    data: {
      username: 'admin11',
      password: 'admin',
    }
  })
  console.log(result)
}
</script>

<style lang='less' scoped>

</style>
